package 面向对象;

public class Rectangle {
    public static void main(String[] args) {
        RectangleTest r1=new RectangleTest();
        r1.width=10;
        r1.length=8;
        System.out.println(r1.RectangleArea());
        r1.Pattern();
    }
}
class RectangleTest{
    int width;
    int length;
    public int RectangleArea(){
        return width*length;
    }
public void Pattern(){
    for (int i = 0; i < 5; i++) {
        for (int j = 0; j < 20; j++) {
            System.out.print("*");
        }
        System.out.println();
    }
}

}
